/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package za.co.pas.business.message;

/**
 *
 * @author alabuschagne
 */
public abstract class MessageObj
{
    public static final String COMPANY_DETAILS_SAVED = "CompanyDetailSaved";
    public static final String COMPANY_DETAILS_CHANGED = "CompanyDetailChanged";
    public static final String COMPANY_LIST_CHANGED = "CompanyListChanged";
    public static final String REQUEST_COMPANY_DETAILS_CHANGE = "RequestCompanyDetailChange";
    public static final String STATUS_MESSAGE = "StatusMessage";
    public static final String ALLOK = "All is Ok!";
    public static final String NOTOK = "NOT OK";
    private String propertyName;
    private Object oldValue;
    private Object newValue;

    private MessageObj(){}

    public MessageObj(String propertyName)
    {
        setPropertyName(propertyName);
    }

    /**
     * @return the propertyName
     */
    public String getPropertyName()
    {
        return propertyName;
    }

    /**
     * @param propertyName the propertyName to set
     */
    protected void setPropertyName(String propertyName)
    {
        this.propertyName = propertyName;
    }

    /**
     * @return the oldValue
     */
    public Object getOldValue()
    {
        return oldValue;
    }

    /**
     * @param oldValue the oldValue to set
     */
    public void setOldValue(Object oldValue)
    {
        this.oldValue = oldValue;
    }

    /**
     * @return the newValue
     */
    public Object getNewValue()
    {
        return newValue;
    }

    /**
     * @param newValue the newValue to set
     */
    public void setNewValue(Object newValue)
    {
        this.newValue = newValue;
    }

}
